<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<div>{{counter}}</div>
			<button type="button" v-on:click="counter++">++</button>
			<button type="button" v-on:click="counter--">--</button>
			<button type="button" v-on:click="increment">++</button>
			<button type="button" v-on:click="decrement">--</button>
			<button type="button" @click="increment">++</button>
			<button type="button" @click="decrement">--</button>
		</div>
	</body>
	<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		const app = new Vue({
			el: "#app",
			data:{
				counter: 0
			},
			methods:{
				increment(){
					this.counter++;
				},
				decrement(){
					this.counter--;
				}
			}
		})
	</script>
</html>
